﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Article_Add.aspx.cs" Inherits="Web.Admin.Article_Add"
    ValidateRequest="false" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="../ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="../ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" src="../ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <h1>
        文章添加</h1>
    <table border="1" cellpadding="5" cellspacing="0" width="800">
        <tr>
            <td>
                文章名称：
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server" Width="200"></asp:TextBox>
            </td>
            <td>
                英文名称：
            </td>
            <td>
                <asp:TextBox ID="txtEname" runat="server" Width="200"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                关键字：
            </td>
            <td>
                <asp:TextBox ID="txtKeywords" runat="server" Width="200"></asp:TextBox>
            </td>
            <td>
                发布日期：
            </td>
            <td>
                <asp:TextBox ID="txtPublishTime" runat="server" Width="200"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                状态标识：
            </td>
            <td colspan="3">
                <asp:RadioButton ID="rbtnUse" runat="server" Text="可用" GroupName="0" Checked="true" />
                <asp:RadioButton ID="rbtnNoUse" runat="server" Text="不可用" GroupName="0" />
            </td>
        </tr>
        <tr>
            <td>
                文章分类：
            </td>
            <td colspan="3">
                <asp:CheckBoxList ID="cblTypelist" runat="server" RepeatColumns="6">
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td>
                文章标签：
            </td>
            <td colspan="3">
                <asp:CheckBoxList ID="cblTaglist" runat="server" RepeatColumns="6">
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td>
                文章内容：
            </td>
            <td colspan="3">
                <script id="container" name="content" type="text/plain">
                </script>
                <script type="text/javascript">
                    var editor = UE.getEditor('container')
                </script>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:HiddenField ID="hiddenContent" runat="server" />
                <asp:Button ID="btnAdd" runat="server" Text="提交" Height="39px" OnClick="btnAdd_Click"
                    OnClientClick="setContent();" Width="134px" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
<script type="text/javascript">
    function setContent() {
        document.getElementById("<%=hiddenContent.ClientID%>").value = UE.getEditor('container').getContent();
    }
</script>
